
import request from '@/utils/request';

// 查询列表
export async function queryVersionMag(params) {
  return request('/b/bucversionmanage/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addVersionMag(params) {
  return request('/b/bucversionmanage/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeVersionMag(params) {
  return request('/b/bucversionmanage/delete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updateVersionMag(params) {
  return request('/client/versionMag/update', {
    method: 'POST',
    data: params,
  });
}

// 上传版本包
export async function upload(params) {
  return request('/b/bucversionmanage/upload', {
    method: 'post',
    // processData: false,
    data: params,
    headers: {'Content-Type': 'multipart/form-data'},
  });
}

// 升级记录
export async function queryUpGrade(params) {
  return request('/b/terminalversion/queryPageList', {
    method: 'POST',
    data: params,
  });
}




